﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc_left_nav_home.ascx.cs" Inherits="menu_uc_left_nav_home" %>
<%@ Register Assembly="ESWebFramework.I18N" Namespace="ESWebFramework.I18N" TagPrefix="eswf" %>
<%@ Register src="~/banners/uc_banners.ascx" tagname="uc_banners" tagprefix="uc5" %>
<style>
.lblsrc
{
    text-align:left;
    margin-left:9px !important;
}
._padding_top_bottom
{
    margin-top:13px;
}

#NewCompaniesList a
{
	font-size:11px !important;
}

</style>
<script type="text/javascript">
    $(document).ready(function () {
        // Datepicker
        $('#<%=tb_date.ClientID%>').datepicker({ dateFormat: 'dd/mm/yy' });

        $('#<%=ddl_type_transport.ClientID%>').change(function () {

            $('#<%=ddl_vehicleType.ClientID%>').html('');
            var vehicle_types = new Array();
            vehicle_types[166] = 13;
            vehicle_types[164] = 14;
            vehicle_types[165] = 3;
            vehicle_types[167] = 1;

            $.ajax({
                url: "admin/webservice/UniversalType.asmx/getUniverTypeByType",
                data: '{typeid: ' + vehicle_types[this.value] + ',language_id:<%=this.LangId%>}',
                dataType: "json",
                async: false,
                contentType: "application/json; charset=utf-8",
                type: "POST",
                complete: function (json1) {
                    var c = JSON.parse(json1.responseText);
                    var d = JSON.parse(c.d);
                    $('<option value="0"></option>').appendTo('#<%=ddl_vehicleType.ClientID%>')
                    for (var i in d) {

                        $('<option value="' + i + '">' + d[i] + '</option>').appendTo('#<%=ddl_vehicleType.ClientID%>');
                    }
                }
            });

        })
    });
   </script>
<div id="left_navig">
    <div class="offer_search">
        <eswf:ESi18nLabel ID="ESi18nLabel1" TextReference="search_offers" CssClass="_bold upper" runat="server"></eswf:ESi18nLabel>
    </div>
    <div class="sarch_menu" style="background-color:#fff;border:1px solid #CCCCCC;width:193px;margin-left:5px">
        <eswf:ESi18nLabel ID="ESi18nLabel2" CssClass="lblsrc" TextReference="type_offer" runat="server"></eswf:ESi18nLabel>
        <asp:DropDownList ID="ddl_type_offer" CssClass="form_select" runat="server">
        </asp:DropDownList>
        <eswf:ESi18nLabel ID="ESi18nLabel3" CssClass="lblsrc" TextReference="type_transport" runat="server"></eswf:ESi18nLabel>
        <asp:DropDownList ID="ddl_type_transport" CssClass="form_select" runat="server">
        </asp:DropDownList>
        <eswf:ESi18nLabel ID="ESi18nLabel4" CssClass="lblsrc" TextReference="country" runat="server"></eswf:ESi18nLabel>
        <asp:DropDownList ID="ddl_country" CssClass="form_select" runat="server">
        </asp:DropDownList>
        <eswf:ESi18nLabel ID="ESi18nLabel5" CssClass="lblsrc" TextReference="post_code" runat="server"></eswf:ESi18nLabel>
        <asp:TextBox ID="tb_postCode" Width="165px"  CssClass="form_select" runat="server"></asp:TextBox>
        <eswf:ESi18nLabel ID="ESi18nLabel6" CssClass="lblsrc" TextReference="vehicle_type" runat="server"></eswf:ESi18nLabel>
        <asp:DropDownList ID="ddl_vehicleType" CssClass="form_select" runat="server">
        </asp:DropDownList>
        <eswf:ESi18nLabel ID="ESi18nLabel7" CssClass="lblsrc" TextReference="placement_type" runat="server"></eswf:ESi18nLabel>
        <asp:DropDownList ID="ddl_placementType" CssClass="form_select" runat="server">
        </asp:DropDownList>
        <eswf:ESi18nLabel ID="ESi18nLabel8" CssClass="lblsrc" TextReference="date" runat="server"></eswf:ESi18nLabel>
        <asp:TextBox ID="tb_date" ReadOnly="true" Width="165px"  CssClass="form_select" runat="server"></asp:TextBox>
        <center>
            <eswf:ESi18nButton ID="btn_submit" CssClass="" TextReference="search" 
                class="sign_in _padding_top_bottom" runat="server" onclick="btn_submit_Click" />
        </center>
    </div>
    <div class="offer_search">
        <eswf:ESi18nLabel ID="ESi18nLabel12" CssClass="_bold upper" style="text-transform:uppercase" TextReference="search_comp" runat="server"></eswf:ESi18nLabel>
    </div>
    <div class="sarch_menu" style="height:238px !important;background-color:#fff;border:1px solid #CCCCCC;width:193px;margin-left:5px">
        <eswf:ESi18nLabel ID="ESi18nLabel13" CssClass="lblsrc" TextReference="comp_name" runat="server"></eswf:ESi18nLabel>
        <asp:TextBox ID="tbCompany" CssClass="form_select" Width="165px" runat="server"></asp:TextBox>
        <eswf:ESi18nLabel ID="ESi18nLabel14" CssClass="lblsrc" TextReference="country" runat="server"></eswf:ESi18nLabel>
        <asp:DropDownList ID="dd_country" CssClass="form_select" runat="server">
        </asp:DropDownList>
        <eswf:ESi18nLabel ID="ESi18nLabel15" CssClass="lblsrc" TextReference="type_transport" runat="server"></eswf:ESi18nLabel>
        <asp:DropDownList ID="ddl_TransportType" CssClass="form_select" runat="server">
        </asp:DropDownList>
        <eswf:ESi18nLabel ID="ESi18nLabel16" CssClass="lblsrc" TextReference="company_type" runat="server"></eswf:ESi18nLabel>
        <asp:DropDownList ID="ddl_CompanyType" CssClass="form_select" runat="server">
        </asp:DropDownList>
        <center>
            <eswf:ESi18nButton ID="ESi18nButton1" TextReference="search" class="sign_in _padding_top_bottom" 
            runat="server" onclick="btn_submit_Click1" />
        </center>
    </div>
    <div class="dvspecOffers" style="line-height:20px;display:none">
        <div class="offer_search" style="text-align:center">
            <eswf:ESi18nLabel ID="ESi18nLabel10" CssClass="_bold upper" TextReference="spec_offers" runat="server"></eswf:ESi18nLabel>
        </div>
        <div style="background-color:#fff;border:1px solid #CCCCCC;width:193px;margin-left:5px">
            <div style="padding:10px;">
                <div style="background-color:#FFF;padding:8px;border:1px solid #464a4d;">
                    <asp:PlaceHolder ID="phSpecOffers" runat="server"></asp:PlaceHolder>
                </div>
            </div>
        </div>
        
    </div>
    <div class="dvAccessories">
        <div class="offer_search" style="text-align:center">
            <eswf:ESi18nLabel ID="ESi18nLabel9" CssClass="_bold upper" TextReference="accessories" runat="server"></eswf:ESi18nLabel>
        </div>
        <div style="border:1px solid #CCCCCC;margin-left:5px;width:183px;padding:5px;">
            <asp:PlaceHolder ID="phLinks"  runat="server"></asp:PlaceHolder>
        </div>
    </div>
    <div class="dvspecOffers" id="NewCompaniesList" style="display:none">
        <div class="offer_search" style="text-align:center">
            <eswf:ESi18nLabel ID="ESi18nLabel11" CssClass="_bold upper" TextReference="new_comp" runat="server"></eswf:ESi18nLabel>
        </div>
        <div style="border:1px solid #CCCCCC;margin-left:5px;width:183px;padding:5px;height:180px">
            <asp:PlaceHolder ID="phNewCompanies"  runat="server"></asp:PlaceHolder>
        </div>
    </div>
    <div>
    <%--<uc5:uc_banners ID="uc_banners1" runat="server" />--%>
    </div>
</div>
